package it.ap.sa.core.utils;

import java.lang.reflect.ParameterizedType;

public abstract class ClassUtil {

	/**
	 * @author Alessandro Paolillo
	 */
	public static Class<?> getGenericClass(Class<?> classe, int indexGeneric){
		return (Class<?>)(((ParameterizedType)classe.getGenericSuperclass()).getActualTypeArguments()[indexGeneric]);
	}
}
